﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SofireXSqlEntityGenerator.Core
{
    public class CodeOptions
    {
        public string Name { get; set; }
        public string DirectoryName { get; set; }
        public string Namespace { get; set; }
        public string Filename
        {
            get
            {
                return System.IO.Path.Combine(this.DirectoryName, this.Name + ".cs");
            }
        }

        public List<FieldOption> Fields { get; set; }
        public List<FieldOption> PrimaryKeys { get; set; }
    }

    public class FieldOption
    {
        public string Name { get; set; }
        public string FieldName { get; set; }
        public bool IsNullable { get; set; }
    }
}
